// 一级
export interface category1Item {
  id: number
  name: string
}

export type category1Response = category1Item[]
// 二级
export interface category2Item extends category1Item {
  category1Id: number
}
export type category2Response = category2Item[]

// 三级
export interface category3Item extends category1Item {
  category2Id: number
}
export type category3Response = category3Item[]

// 属性列表
export interface attrValueItem {
  id?: number
  valueName: string
  attrId?: number
  isEdit?: boolean
}
export type attrValueList = attrValueItem[]
export interface attrItem {
  id: number
  attrName: string
  attrValueList: attrValueList
}
export type categoryListResponse = attrItem[]

export interface SaveAttrApiParams extends attrItem {
  categoryId: number;
  categoryLevel: number;
}
